package card;

public class Card {

	private String type;
	private String number;
	
	public Card (String card){
		number = card.substring(0, 1).toLowerCase();
		type = card.substring(1).toLowerCase();
	}
	
	public String getDescription(){
		String description = "";
		switch(number){
			case "a": description += "Ace"; break;
			case "2": description += "Two"; break;
			case "3": description += "Three"; break;
			case "4": description += "Four"; break;
			case "5": description += "Five"; break;
			case "6": description += "Six"; break;
			case "7": description += "Seven"; break;
			case "8": description += "Eight"; break;
			case "9": description += "Nine"; break;
			case "t": description += "Ten"; break;
			case "j": description += "Jack"; break;
			case "q": description += "Queen"; break;
			case "k": description += "King"; break;
			default: return "Unknown";
		}
		switch(type){
			case "d": description += " of Diamonds"; break;
			case "h": description += " of Hearts"; break;
			case "s": description += " of Spades"; break;
			case "c": description += " of Clubs"; break;
			default: return "Unknown";
		}
		return description;
	}
}
